package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.pojo.Clazz;
import com.itheima.pojo.PageResult;

import java.time.LocalDate;

public interface ClazzService extends IService<Clazz> {
    //查询
    PageResult<Clazz> queryString(String name, LocalDate begin, LocalDate end, Integer page1, Integer pageSize);
    //删除
    void deleteClazz(Integer id);
    //添加
    void queryPostClazz(Clazz clazz);
    //改的前提是先查询
    Clazz queryClazz(Integer id);
    //改
    void updateClazz(Clazz clazz);

}
